package com.example.controller;

import com.example.mapper.ResumeMapper;
import com.example.service.IPersonalHomeService;
import com.example.service.IResumeService;
import com.example.vo.ResultVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * 个人主页控制器
 *
 * @author wsl
 */
@RequestMapping("/personal")
@RestController
@Api(tags = "个人主页管理")
public class PersonalHomeController {

    @Autowired
    private IPersonalHomeService personalHomeService;

    @GetMapping("/resume")
    @ApiModelProperty(value = "获取个人简历")
    public ResultVo getPersonalResume(HttpServletRequest request){
        return personalHomeService.getPersonalResume(request);
    }
}
